<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/oversea.js"></script>
<script>
function addorder()
{
	$('#addstorageform').modal('show');	
}
</script>
<title>销售项目列表</title>
<style type="text/css">
.stdtable tbody tr td{padding:3px 5px;}
</style>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">项目商品销售报表</h1>
      <span class="pagedesc"></span>
       <div class="menulist">
        <ul class="profile_summary">
          <li> <a href="javascript:void(0)" onClick="addorder()" class=""><span>增加项目商品</span></a></li>
          <li><a href="/sales/ajaxbutton?op=programProductList&program_id={{$program.id}}"><span>查看项目商品</span></a></li>
        </ul>
      </div>
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
          <!--搜索栏-->
           
    <form class="stdform stdform2" method="get" action="/sales/ajaxbutton">
    <div style="" class="tableoptions">
    	<input type="hidden" name="op" id="op" value="saleCounts">
        <input type="hidden" name="program_id" value="{{$program.id}}" />
      <div style="line-height:28px;"><strong>项目名称：</strong>{{$program.program_name}} &nbsp;<strong>负责人：{{$program.name}}</strong>&nbsp;&nbsp;订单时间段：<input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /><br>
 <strong>店铺：</strong>
 <input name="shopname" id="shopname" type="hidden" value="{{$shopnames}}" />
 <span id="search_list">{{$shopnames}}</span>&nbsp;<span id="choose_shop_btn" style="cursor:pointer;border:1px solid #ccc;padding:6px 5px 7px;border-radius:3px;" onClick="getShopList()">选择店铺 <img src="/fuman/images/search_down.png" width="14" height="21" align="absmiddle" style="margin-bottom:-4px;"></span>
  <button class="btn btn_orange btn_search radius50">Search</button>
 </div>
    </div>
    </form>
    <!--搜索栏结束-->

<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
<thead>
  <tr valign="top" style="height:20px">
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">时间</td>
<td colspan="3" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">收入</td>
<td colspan="5" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">支出</td>
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">商品销量</td>
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">订单量</td>
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">利润</td>
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">毛利率</td>
</tr>
<tr valign="top" style="height:20px">
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">交易金额</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">实收运费</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">小计</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">商品成本</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">预估运费</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">平台交易费</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">收款交易费</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">小计</td>
</tr>
</thead>

 {{foreach from=$day_sale_list item=res key=key}}
<tr>
  <td class="head1" align="center">{{$res.dates}}</td>
  <td class="head0" align="center">{{$res.goods_amount_total}}</td>
  <td class="head1" align="center">{{$res.shipping_fee_total}}</td>
  <td class="head0" align="center">{{$res.subtotal}}</td>
  <td class="head1" align="center">{{$res.costprice_total}}</td>
   <td class="head1" align="center">{{$res.expectfee}}</td>
  <td class="head1" align="center">{{$res.platform_fee_total}}</td>
  <td class="head1" align="center">{{$res.payfee_total}}</td>
   <td class="head1" align="center">{{$res.subzhic}}</td>
  <td class="head0" align="center">{{$res.sell_total}}</td>
   <td class="head1" align="center">{{$res.order_total}}</td>
    <td class="head0" align="center">{{$res.lirun}}</td>
     <td class="head0" align="center">{{$res.maoliv}}%</td>
   </tr>
{{/foreach}}
<tr>
{{if $searchdata neq 'nosearch'}}
<td class="head1" align="center"><B>合计</B></td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$allorderAmount}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$allshipping_fee}}</B></font></td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$allsubtotal}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$allcosprice}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$allfreight}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$allplatformfee}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$allpayfee}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$allsubzhic}}</B></font></td>

<td class="head0" align="center"><font color="#FF0000"><B>{{$allnum}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$allorderNum}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$alllirun}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$alllirunlv}}%</B></font></td>
</tr>
{{/if}}
</table>          
</div></div>

<div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
            <tr>
            	<th colspan="12" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">FBA订单日收入报表</th>
            </tr>
              <tr bgcolor="#CCCCCC">
                <th height="20" bgcolor="#CCCCCC">时间</th>
                <th bgcolor="#CCCCCC">交易金额</th>
                <th  bgcolor="#CCCCCC">收入运费</th>
                <th  bgcolor="#CCCCCC">小计</th>
                <th bgcolor="#CCCCCC">商品成本</th>
                <th bgcolor="#CCCCCC">FBA费用</th>
                <th bgcolor="#CCCCCC">头程</th>
                <th bgcolor="#CCCCCC">小计</th>
                <th bgcolor="#CCCCCC">商品销量</th>
                <th bgcolor="#CCCCCC">订单数量</th>
                <th  bgcolor="#CCCCCC">利润</th>
                <th bgcolor="#CCCCCC">毛利率</th>
            </thead>
          
             {{foreach from=$list item=res key=key}}
             <tr>
               <td height="20" align="center">{{$res.dates}}</td>
               <td height="20" align="center">{{$res.goods_amount_total}}</td>
               <td height="20" align="center">{{$res.realfee}}</td>
               <td height="20" align="center">{{$res.goods_amount_total+$res.shipping_fee_total}}</td>
               <td height="20" align="center">{{$res.costprice_total}}</td>
               <td height="20" align="center">{{$res.payship_fee_total}}</td>
               <td align="center">{{$res.ship_price}}</td>
               <td align="center">{{$res.costprice_total-$res.payship_fee_total+$res.ship_price}}</td>
               <td height="20" align="center">{{$res.goods_number_total}}</td>
               <td height="20" align="center">{{$res.order_total}}</td>
               <td align="center">{{$res.lvrun}}</td>
               <td align="center">{{$res.lirunlv}}%</td>
      </tr>
            {{/foreach}}
            <tr>
            <td class="head1" align="center"><B>合计</B></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.goods_amount_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.realfee}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.i_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.costprice_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.payship_fee_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.ship_price_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><b>{{$tal.costprice_total+$tal.payship_fee_total+$tal.ship_price_total}}</b></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.goods_number_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.order_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.lirun}}</B></font></td>
              <td align="center">{{$tal.lirunlv}}%</td>
      </tr>
          </table>          
</div></div>
<div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
            <tr>
            	<th colspan="12" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">总销售额合计</th>
            </tr>
              <tr bgcolor="#CCCCCC">
                <th height="20" bgcolor="#CCCCCC">订单类型</th>
                <th bgcolor="#CCCCCC">交易金额</th>
                <th  bgcolor="#CCCCCC">收入运费</th>
                <th  bgcolor="#CCCCCC">小计</th>
                <th bgcolor="#CCCCCC">商品成本</th>
                <th bgcolor="#CCCCCC">FBA费用/平台支出</th>
                <th bgcolor="#CCCCCC">头程/运费</th>
                <th bgcolor="#CCCCCC">小计</th>
                <th bgcolor="#CCCCCC">商品销量</th>
                <th bgcolor="#CCCCCC">订单数量</th>
                <th  bgcolor="#CCCCCC">利润</th>
                <th  bgcolor="#CCCCCC">毛利率</th>
             </tr>
            </thead>
              <tr> 
                <td align="center">总直发订单</td>
                <td align="center">{{$allorderAmount}}</td>
                <td align="center">{{$allshipping_fee}}</td>
                <td align="center">{{$allsubtotal}}</td>
                <td align="center">{{$allcosprice}}</td>
                <td align="center">{{$allplatformfee}}</td>
                <td align="center">{{$allpayfee}}</td>
                <td align="center">{{$allsubzhic}}</td>
                <td align="center">{{$allnum}}</td>
                <td align="center">{{$allorderNum}}</td>
                <td align="center">{{$alllirun}}</td>
                <td align="center">{{$alllirunlv}}%</td>
      </tr>
             <tr>
               <td height="20" align="center">总FBA订单</td>
               <td class="head1" align="center">{{$tal.goods_amount_total}}</td>
               <td class="head1" align="center">{{$tal.realfee}}</td>
               <td class="head1" align="center">{{$tal.i_total}}</td>
               <td class="head1" align="center">{{$tal.costprice_total}}</td>
               <td class="head1" align="center">{{$tal.payship_fee_total|abs}}</td>
               <td class="head1" align="center">{{$tal.ship_price_total}}</td>
               <td class="head1" align="center">{{$tal.costprice_total+$tal.payship_fee_total+$tal.ship_price_total}}</td>
               <td class="head1" align="center">{{$tal.goods_number_total}}</td>
               <td class="head1" align="center">{{$tal.order_total}}</td>
               <td class="head1" align="center">{{$tal.lirun}}</td>
               <td align="center">{{$tal.lirunlv}}%</td>
      		</tr>
            <tr>
            <td class="head1" align="center"><B>合计</B></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.goods_amount_total+$allorderAmount}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.realfee+$allshipping_fee}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.i_total+$allsubtotal}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.costprice_total+$allcosprice}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.payship_fee_total+$allplatformfee}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.ship_price_total+$allpayfee}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><b>{{$tal.costprice_total+$tal.payship_fee_total+$tal.ship_price_total+$allsubzhic}}</b></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.goods_number_total+$allnum}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.order_total+$allorderNum}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.lirun+$alllirun}}</B></font></td>
              <td align="center">{{$order_lirunlv}}%</td>
      </tr>
          </table>          
</div></div>
<div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
    <div style="height:25px; text-align:center;font-size:16px;" class="tableoptions"><strong>项目商品热销报表</strong>
</div>
<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
<thead>
  <tr valign="top" style="height:20px">
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">商品编号</td>
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">商品名称</td>
<td colspan="3" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">收入</td>
<td colspan="5" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">支出</td>
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">商品销量</td>
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">订单量</td>
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">利润</td>
<td rowspan="2" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">毛利率</td>
</tr>
<tr valign="top" style="height:20px">
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">交易金额</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">实收运费</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">小计</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">商品成本</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">预估运费</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">平台交易费</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">收款交易费</td>
<td style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">小计</td>
</tr>
</thead>

 {{foreach from=$order_goods_list item=res key=key}}
<tr>
  <td class="head1" align="center">{{$res.goods_sn}}</td>
  <td class="head1" align="center"><span title="{{$res.goods_name}}">{{$res.goods_name|getstr:18:0}}</span></td>
  <td class="head0" align="center">{{$res.goods_amount_total}}</td>
  <td class="head1" align="center">{{$res.shipping_fee_total}}</td>
  <td class="head0" align="center">{{$res.subtotal}}</td>
  <td class="head1" align="center">{{$res.costprice_total}}</td>
   <td class="head1" align="center">{{$res.expectfee}}</td>
  <td class="head1" align="center">{{$res.platform_fee_total}}</td>
  <td class="head1" align="center">{{$res.payfee_total}}</td>
   <td class="head1" align="center">{{$res.subzhic}}</td>
  <td class="head0" align="center">{{$res.sell_total}}</td>
   <td class="head1" align="center">{{$res.order_total}}</td>
    <td class="head0" align="center">{{$res.lirun}}</td>
     <td class="head0" align="center">{{$res.maoliv}}%</td>
   </tr>
{{/foreach}}
<tr>
{{if $searchdata neq 'nosearch'}}
<td class="head1" align="center"><B>合计</B></td>
<td class="head1" align="center">&nbsp;</td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$gallorderAmount}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$gallshipping_fee}}</B></font></td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$gallsubtotal}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$gallcosprice}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$gallfreight}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$gallplatformfee}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$gallpayfee}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$gallsubzhic}}</B></font></td>

<td class="head0" align="center"><font color="#FF0000"><B>{{$gallnum}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$gallorderNum}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$galllirun}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$gallmaolv}}</B></font></td>
</tr>
{{/if}}
</table>         
</div></div>

<div id="contentwrapper" class="contentwrapper">
    <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
    <thead>
     <tr>
        <th colspan="9" class="head1">订单列表</th>
        <th  class="head1" align="right"><a href="/sales/ajaxbutton?op=programSaleList&program_id={{$program.id}}&starttime={{$starttime}}&endtime={{$endtime}}&shopname={{$shopnames}}" target="_blank">More</a></th>
      </tr>
    </thead>
    <tbody >
    <thead>
      <tr class="lbbt">
         <td bgcolor="#FEFFF1" >订单编号</td>
        <td  bgcolor="#FEFFF1" >店铺</td>
        <td  bgcolor="#FEFFF1" >状态</td>
        <td  bgcolor="#FEFFF1">买家帐号</td>
        <td  bgcolor="#FEFFF1" >商品金额</td>
        <td  bgcolor="#FEFFF1">商品编号</td>
        <td  bgcolor="#FEFFF1">货运方式</td>
        <td bgcolor="#FEFFF1">货运单号</td>
        <td  bgcolor="#FEFFF1">订单日期</td>
        <td  bgcolor="#FEFFF1">订单时间</td>
      </tr>
    </thead>
    {{foreach from=$sale_order_list item=li key=key}}
    <tr>
      <td valign="middle"  style="position:relative;"><a href="/orderlist/editorder?order_id={{$li.order_id}}" target="_blank">{{$li.order_sn}}</a></td>
      <td>{{$li.shopname}}</td>
      <td valign="middle" >{{if $li.order_status==1}}新订单{{/if}}
      {{if $li.order_status==2}}已支付{{/if}}
      {{if $li.order_status==3}}配货中{{/if}}
      {{if $li.order_status==4}}已发货{{/if}}
      {{if $li.order_status==5}}已完成{{/if}}
      {{if $li.order_status==6}}已作废{{/if}}</td>
      <td valign="middle" >{{$li.customerid}}</td>
      <td valign="middle" >{{$li.goods_amount}}</td>
      <td valign="middle" >{{$li.goods_sn}}</td>
      <td valign="middle" >{{$li.shipping_name}}</td>
       <td valign="middle" >{{$li.shipping_number}}</td>
       <td valign="middle" >{{$li.dates}}</td>
      <td valign="middle" >{{$li.ordertime}}</td>
    </tr>
    {{/foreach}}
    <tr>
      <td colspan="10" height="30" align="center" valign="middle"  style="position:relative;"><a href="/sales/ajaxbutton?op=programSaleList&program_id={{$program.id}}&starttime={{$starttime}}&endtime={{$endtime}}&shopname={{$shopnames}}" target="_blank"><strong>查看详细订单列表&gt;&gt;</strong></a></td>
      </tr>
    </tbody>
    </table>
</div>

<form action="/sales/addProgramProducts"  method="post" name="attributeform" id="attributeform" >
  <div class="modal fade" id="addstorageform" tabindex="-1" role="dialog" aria-labelledby="returnaddattributeform" aria-hidden="true">
    <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">× </button>
          <h4 class="modal-title" id="returnaddattributeform"> 添加项目商品</h4>
        </div>
        <div class="modal-body">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>所属项目：</td>
              <td align="left">{{$program.program_name}}</td>
            </tr>
            <tr>
              <td width="100">商品SKU号： </td>
              <td align="left"><textarea name="sku" id="sku" cols="10" rows="10"></textarea>
              <input type="hidden" name="program_id" value="{{$program.id}}" id="program_id"></td>
            </tr>
          
             <tr>
              <td>注意： </td>
              <td align="left">一行一个SKU商品编号</td>
            </tr>
          </table>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal"> 关闭 </button>
            <button type="button" class="btn btn-primary"  onclick="ajaxPostAddProduct()"> 提交 </button>
          </div>
        </div>
        <!-- /.modal-content --> 
      </div>
      <!-- /.modal-dialog --> 
    </div>
  </div>
  <!-- /.modal -->
</form>

<div style="position:absolute;z-index:999;top:45px;border:1px solid #666;left:220px;width:870px;background:#f5f5f5;padding:6px 10px;height:450px;margin-bottom:40px;display:none;" id="ajax_box">
<div style="padding-top:8px;padding-left:12px;height:28px;"><h4 style="float:left">选择要搜索的店铺</h4><span style="float:right">
  <input type="button" name="button" id="button" onClick="setShopInfo('programsearch')" value="确定选择">&nbsp;&nbsp; <input type="button" value="关闭弹层" onClick="closeShowBox()">
</span></div>
<hr>
<div id="shop_box" style="height:400px;overflow:auto"></div>
</div>
<script type="text/javascript" src="/fuman/js/report.js"></script>
<script language="javascript">
	function ajaxPostAddProduct(){/*
		var skuval=$("#sku").val();
		var program_idval=$("#program_id").val();
		$.post("/sales/addProgramProducts",{sku:skuval,program_id:program_idval},function(ret){
			alert(ret);
			if(ret.state==1){
			}else{
				alert(ret.msg);
			}
		},'html');(*/
		$("#attributeform").submit();
	}
</script>

</body>
</html>